import { takeEvery, call } from 'redux-saga/effects'
import { addCount, delCount } from './count'
import { initList } from './list'

function * rootSaga() {
    // takeEvery(匹配的命令)
  yield takeEvery("ADD_COUNT", addCount)
  yield takeEvery("DEL_COUNT", delCount)
  yield takeEvery("INIT_LIST", initList)
}

export default rootSaga